package User;

import Operation.Operation;
import Operation.*;

import java.util.Scanner;

public class AdminUser extends User {
    public AdminUser(String name) {
        super(name);
        this.operations = new Operation[]{
                new Add(),
                new Del(),
                new Show()
        };
    }
    @Override
    public int menu() {
        System.out.println("*****************");
        System.out.println("欢迎来到管理员菜单");
        System.out.println("0.增加图书");
        System.out.println("1.删除图书");
        System.out.println("2.展示图书");
        System.out.println("请输入你的操作");
        Scanner scanner = new Scanner(System.in);
        int choice= scanner.nextInt();
        return choice;
    }
}